package com.woniuxy.project.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddProjectVo {
    /**项目序号*/
    private String pno;
    /**项目名称*/
    private String pname;
    /**项目类型*/
    private String type;
    /**借款金额*/
    private BigDecimal money;
    /**借款人id*/
    private Integer uid;
    /**还款方式*/
    private String repayment;
    /**借款期限*/
    private Integer deadline;
    /**年利化率*/
    private BigDecimal rate;
    /**开标时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime starttime;
    /**最低投资数*/
    private BigDecimal minmoney;
    /**募集期*/
    private Integer collecttime;
    /**担保人id*/
    private Integer gid;
    /**奖励比率*/
    private BigDecimal bonusrate;
    /**放款管理费率*/
    private BigDecimal loanrate;
}
